import request from '@/utils/request'
import qs from 'qs'

export function balanceInfo (params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/wallet/balance',
    method: 'get',
    params: data
  })
}

export function withdrawList (params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/withdrawal/index',
    method: 'get',
    params: data
  })
}

export function withdrawAdd (params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/withdrawal/add',
    method: 'post',
    data: qs.stringify(data)
  })
}
